/**
 * Created by xt on 2017/3/30.
 */
import React, { Component }from 'react'

class SelectSchool extends Component{
  constructor(props) {
    super(props)

  }
  render () {
    let proList = this.props.school.map((school,index) => {
      return <li key={index} data-id={school.id} onClick={this.props.chooseSchool(index)}>{school.name}</li>
    });
    return(
      <div className="search-box">
        <ul>
          {proList}
        </ul>
      </div>
    )
  }
}
export default SelectSchool;
